package org.facyt.vacas.entities.vacas;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name="clase_animal", schema="vacas")
public class Clase_animal implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="clase_animal_seq", sequenceName="vacas.clase_animal_id_seq")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="clase_animal_seq")
	@Column(name="id")
	private Integer id;
	
	@Column(name="nombre",columnDefinition="bpchar")
	private String nombre;	
	
	
	public String getNombre() {
		return nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	
	
	
}
